/**
 * Copyright 2012-2013 Brin.com
 * All rights reserved.
 * 
 * @project
 * @author Brin
 * @version 1.0
 * @data 2013-04-02
 */
package com.brin.code.dao;

import java.util.List;

import com.brin.code.model.pojo.NavigationPOJO;
import com.brin.core.base.dao.BaseDao;

/**
 * 导航，功能Dao
 * @author brin
 *
 */
public class NavigationDao extends BaseDao<Object> {

	/**
	 * 导航，功能的添加配置
	 * @param navigator
	 * @return
	 */
	public Integer addNavigation(NavigationPOJO navigation){
		return (Integer) super.insert("addNavigation", navigation);
	}
	
	/**
	 * 通过id删除导航，功能的配置
	 * @param navigation
	 * @return
	 */
	public Integer deleteNavigationById(NavigationPOJO navigation){
		return super.delete("deleteNavigationById", navigation);
	}
	
	/**
	 * 通过id更改导航，功能的配置
	 * @param navigation
	 * @return
	 */
	public Integer updateNavigationById(NavigationPOJO navigation){
		return super.update("updateNavigationById", navigation);
	}
	
	/**
	 * 查寻导航，功能列表的配置
	 * @param navigation
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List<NavigationPOJO> queryNavigationList(NavigationPOJO navigation){
		return super.queryForList("queryNavigationList", navigation);
	}
	
	/**
	 * 查寻导航，功能总数量的配置
	 * @param navigation
	 * @return
	 */
	public Integer queryNavigatorCount(NavigationPOJO navigation){
		return (Integer) super.queryForObject("queryNavigatorCount", navigation);
	}
	
	/**
	 * 通过id查寻导航，功能的配置
	 * @param navigation
	 * @return
	 */
	public NavigationPOJO queryNavigationById(NavigationPOJO navigation){
		return (NavigationPOJO) super.queryForObject("queryNavigationById", navigation);
	}
	
}
